package win.larryzeal.thymeleaf.entity;

/**
 * Created by 张少昆 on 2017/10/20.
 */
public class Book {
	private Author author;
	private String name;
	private double price;
	private String sn;

	public Author getAuthor(){
		return author;
	}

	public void setAuthor(Author author){
		this.author = author;
	}

	public String getName(){
		return name;
	}

	public void setName(String name){
		this.name = name;
	}

	public double getPrice(){
		return price;
	}

	public void setPrice(double price){
		this.price = price;
	}

	public String getSn(){
		return sn;
	}

	public void setSn(String sn){
		this.sn = sn;
	}

	@Override
	public String toString(){
		return "Book{" +
				"author=" + author +
				", name='" + name + '\'' +
				", price=" + price +
				", sn='" + sn + '\'' +
				'}';
	}
}
